﻿using System;
using System.Collections.Generic;
using System.Text;

namespace JESAI.HttpRequestMonitor
{
    /// <summary>
    /// 配置基类
    /// </summary>
    public static class SysConst
    {
        /// <summary>
        /// 默认用户名
        /// </summary>
        public const string DefaultUserName = "admin";

        /// <summary>
        /// 默认密码
        /// </summary>
        public const string DefaultPassword = "e10adc3949ba59abbe56e057f20f883e";

        /// <summary>
        /// 登录cookie id
        /// </summary>
        public const string LoginCookieId = "HttpRequestMonitor_Login_User";

        /// <summary>
        /// 当前控制器
        /// </summary>
        public const string CurrentControllers = "HttpRequestMonitor,HttpRequestMonitorData";

        /// <summary>
        /// ElasticSearch索引名称
        /// </summary>
        public const string ElasticSearchIndexName = "HttpRequestMonitor_Index_";

        /// <summary>
        /// 
        /// </summary>
        public const string HttpRequestMonitorGlobalException = "HttpRequestMonitorGlobalException";

        public const string HttpRequestMonitorRequestBody = "HttpRequestMonitorRequestBody";

        public const string HttpRequestMonitorResponseBody = "HttpRequestMonitorResponseBody";

        public const int HttpRequestMonitorFieldMaxLength = 10000;

        /// <summary>
        /// 过期天数
        /// </summary>
        public const int ExpireDay = 30;

        public const string ActiveTraceName = "HttpRequestMonitor.Trace.Context";

        public const string ActiveTraceId = "HttpRequestMonitor.Trace.Id";

        public const string ActiveTraceCreateTime = "HttpRequestMonitor.Trace.CreateTime";

        public const string ClearDataCornLike = "0 0 0 * * ? ";

        public const string HttpRequestMonitorGrpcRequest = "HttpRequestMonitor.GrpcRequest";

        public const string HttpRequestMonitorGrpcResponse = "HttpRequestMonitor.GrpcResponse";

        /// <summary>
        /// 语言配置
        /// </summary>
        public const string Language = "Language";
    }
}
